<?php
/* @var $this SiteController */
/* @var $model ContactForm */
/* @var $form CActiveForm */
$indo = lang() == "id";
//echo $indo ? "<h1>Hubungi Kami</h1>" : "<h1>Contact Us</h1>";
?>
<?php if(Yii::app()->user->hasFlash('contact')): ?>

<div class="flash-success">
<?php echo Yii::app()->user->getFlash('contact'); ?>
</div>
<?php else: ?>

<div class="judul2" style="padding:3px 15px">
HUBUNGI KAMI
</div>
 <div style="background: #dedede repeat;padding-top:10px;padding-left: 15px;">
<div class="judul_news">
Jika anda ingin menghubungi kami atau memiliki pertanyaan, silahkan isi kolom di bawah ini. Terima kasih.
</div>

<div class="form" >

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'contact-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	<div class="isi">Isian bertanda<span class="required"> *</span> wajib diisi.</div>

	<?php echo $form->errorSummary($model); ?>
  <table border="0" >	
		<tr>
			<td valign="top"><div class="label"><b><?php echo $form->labelEx($model,'name'); ?>            
            </b></div></td>
  	        <td valign="top"><div class="label"><b>:</b></div></td>
			<td valign="top"><?php echo $form->textField($model,'name'); ?></td>
          
		</tr>
		<tr>
			<td valign="top"><div class="label"><b><?php echo $form->labelEx($model,'email'); ?></b></div></td>
            <td valign="top"><div class="label"><b>:</b></div></td>
			<td valign="top"><?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>128)); ?></td>
		</tr>

        <tr>
			<td valign="top"><div class="label"><b><?php echo $form->labelEx($model,'subject'); ?></b></div></td>
            <td valign="top"><div class="label"><b>:</b></div></td>
			<td valign="top">	<?php echo $form->textField($model,'subject',array('size'=>60,'maxlength'=>128)); ?></td>
		</tr>
        <tr>
			<td valign="top"><div class="label"><b><?php echo $form->labelEx($model,'body'); ?></b></div></td>
            <td valign="top"><div class="label"><b>:</b></div></td>
			<td valign="top">	<?php echo $form->textArea($model,'body',array('rows'=>6, 'cols'=>50)); ?></td>
		</tr>
        	<?php if(CCaptcha::checkRequirements()): ?>
		<tr>
        
			<td valign="top"><div class="label">	<?php echo $form->labelEx($model,'verifyCode'); ?></div></td>
            <td valign="top"><div class="label"><b>:</b></div></td>
			<td valign="top"><?php $this->widget('CCaptcha'); ?>
		</td>
        	
		</tr>
        
		<tr>
			<td valign="top"><div class="label"><b></b></div></td>
            <td valign="top"><div class="label"><b></b></div></td>
			<td valign="top"><?php echo $form->textField($model,'verifyCode'); ?></td>
		</tr>
        

        
        	<?php endif; ?>
            
            
		<tr>
			<td valign="top"><div class="label"><b></b></div></td>
            <td valign="top"><div class="label"><b></b></div></td>
			<td valign="top"></td>
		</tr>
		<tr>
			<td>&nbsp;</td>
  	        <td>&nbsp;</td>
			<td>	<?php echo CHtml::submitButton($indo ? 'Kirim' : 'Submit'); ?></td>
		</tr>
	</table>
<!--	<div class="row">
		<?//php echo $form->labelEx($model,'name'); ?>
		<?//php echo $form->textField($model,'name'); ?>
		<?//php echo $form->error($model,'name'); ?>
	</div>

	<div class="row">
		<?//php echo $form->labelEx($model,'email'); ?>
		<?//php echo $form->textField($model,'email'); ?>
		<?//php echo $form->error($model,'email'); ?>
	</div>

	<div class="row">
		<?//php echo $form->labelEx($model,'subject'); ?>
		<?//php echo $form->textField($model,'subject',array('size'=>60,'maxlength'=>128)); ?>
		<?//php echo $form->error($model,'subject'); ?>
	</div>

	<div class="row">
		<?//php echo $form->labelEx($model,'body'); ?>
		<?//php echo $form->textArea($model,'body',array('rows'=>6, 'cols'=>50)); ?>
		<?//php echo $form->error($model,'body'); ?>
	</div>

	<?//php if(CCaptcha::checkRequirements()): ?>
	<div class="row">
		<?//php echo $form->labelEx($model,'verifyCode'); ?>
		<div>
		<?//php $this->widget('CCaptcha'); ?>
		<?//php echo $form->textField($model,'verifyCode'); ?>
		</div>
		<div class="hint">Please enter the letters as they are shown in the image above.
		<br/>Letters are not case-sensitive.</div>
		<?//php echo $form->error($model,'verifyCode'); ?>
	</div>
	<?//php endif; ?>

	<div class="row buttons">
		<?//php echo CHtml::submitButton('Submit'); ?>
	</div>-->

<?php $this->endWidget(); ?>

</div><!-- form -->
</div>
<?php endif; ?>